package com.crm.pojo;

import com.alibaba.fastjson.annotation.JSONField;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the BACK database table.
 */
@Entity
@NamedQuery(name = "Back.findAll", query = "SELECT b FROM Back b")
public class Back implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    @SequenceGenerator(initialValue = 1, allocationSize = 1, name = "BACK_BACKID_GENERATOR", sequenceName = "SEQ1")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "BACK_BACKID_GENERATOR")
    @Column(name = "BACK_ID")
    private Long backId;

    @Column(name = "BACK_IS_DEL")
    private String backIsDel;

    @Column(name = "BACK_MONEY")
    private BigDecimal backMoney;
    @JSONField(format = "yyyy-MM-dd")
    @Temporal(TemporalType.DATE)
    @Column(name = "BACK_TIME")
    private Date backTime;

    @Column(name = "FK_BACK_PLANING_BACK_ID")
    private BigDecimal fkBackPlaningBackId;

    public Back() {
    }

    public Long getBackId() {
        return this.backId;
    }

    public void setBackId(Long backId) {
        this.backId = backId;
    }

    public String getBackIsDel() {
        return this.backIsDel;
    }

    public void setBackIsDel(String backIsDel) {
        this.backIsDel = backIsDel;
    }

    public BigDecimal getBackMoney() {
        return this.backMoney;
    }

    public void setBackMoney(BigDecimal backMoney) {
        this.backMoney = backMoney;
    }

    public Date getBackTime() {
        return this.backTime;
    }

    public void setBackTime(Date backTime) {
        this.backTime = backTime;
    }

    public BigDecimal getFkBackPlaningBackId() {
        return this.fkBackPlaningBackId;
    }

    public void setFkBackPlaningBackId(BigDecimal fkBackPlaningBackId) {
        this.fkBackPlaningBackId = fkBackPlaningBackId;
    }

}